const {genOnceData} = require('../lib/genOnceData');

const assert = require('assert');
describe('genStorage', () => {
    const onceData = genOnceData();
    it('get none',() => {
        onceData.set('tt',1);
        assert.ok(onceData.has('tt')===true);
        const data=onceData.get('tt');
        assert.ok(onceData.has('tt')===false);
        assert.ok(onceData.get('tt')===undefined);
    });
});